﻿using System;
using System.Collections.Generic;
using System.Text;
using BCMS.Business.DataContract;

namespace BCMS.DAL.IDAL
{
    public interface ILog
    {
        void BeginADOTransaction();
        void RollBackTransaction();
        void CommitADOTransaction();
        void Open(string connString);
        void Close();

        void insertLog(LogInfo item);
        void clearLogBeforeDate(DateTime fromDate);
        void clearLogByUserId(string userid);
        List<LogInfo> searchLog(string username, string action, DateTime fromDate, DateTime toDate);
    }
}
